package com.eastfair.venuebooking.service;

import com.eastfair.pay.dto.CollectDTO;
import com.eastfair.pay.dto.UnCollectDTO;
import com.eastfair.pay.vo.CollectRecordVO;

import java.util.List;

/**
 * 支付系统认款记录 service.
 *
 * @author dqq
 * @date 2022 /6/25
 */
public interface VenueBookingCollectRecordService {

    /**
     * 认款.
     *
     * @param collectDTO the collect dto
     * @return the boolean
     */
    boolean collect(CollectDTO collectDTO);

    /**
     * 取消认款.
     *
     * @param unCollectDTO the un collect dto
     * @return the boolean
     */
    boolean uncollect(UnCollectDTO unCollectDTO);

    /**
     * 付款计划id查询认款金额.
     *
     * @param paymentPlanId the payment plan id
     * @return the list
     */
    List<CollectRecordVO> listCollectsByPlanId(Long paymentPlanId);
}
